#include "CustomMutex.h"
#include <QDebug>
#include <QFile>

CustomMutex::CustomMutex(QMutex *parent)
{

}

void CustomMutex::lock(const char *file, int line)
{
    this->lockFile = file;
    this->lockLine = line;
    qDebug() << " locked at file: " << file << " line: " << QString::number(line);
    QMutex::lock();
}

void CustomMutex::unlock(const char *file, int line)
{
    this->unLockFile = file;
    this->unLockLine = line;
    qDebug() << " unlocked at file: " << file << " line: " << QString::number(line);
    QMutex::unlock();
}
